package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 
 */
@Data
@ApiModel(value = "系统配置")
@TableName(value = "cms_system_conf")
@Table(name = "cms_system_conf", comment = "系统配置")
public class CmsSystemConf implements Serializable {
    /**
     * 配置ID
     */
    @TableId
    @ApiModelProperty(value = "配置ID")
    @Column(type= MySqlTypeConstant.BIGINT, comment = "配置ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Integer confId;

    /**
     * 最低充值金额
     */
    @ApiModelProperty(value = "最低充值金额")
    @Column(comment = "最低充值金额", defaultValue = "1.00")
    private BigDecimal minRecharge;

    /**
     * 回收员查单范围（单位:米）
     */
    @ApiModelProperty(value = "回收员查单范围（单位:米）")
    @Column(comment = "回收员查单范围（单位:米）", defaultValue = "3000")
    private Integer distance;

    /**
     * 无人接单补偿金额
     */
    @ApiModelProperty(value = "无人接单补偿金额")
    @Column(comment = "无人接单补偿金额", defaultValue = "1.00", type = MySqlTypeConstant.DECIMAL, length = 18, decimalLength = 2)
    private BigDecimal compensation;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @Column(comment = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Column(comment = "创建时间", type = MySqlTypeConstant.DATETIME)
    private Date createTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    @Column(comment = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @Column(comment = "修改时间", type = MySqlTypeConstant.TIMESTAMP)
    private Date updateTime;

    /**
     * 删除标志（-1:删除,1:正常）
     */
    @ApiModelProperty(value = "删除标志（-1:删除,1:正常）")
     @Column(comment = "删除标志（-1:删除,1:正常）", defaultValue = "1")
    private Integer status;

    private static final long serialVersionUID = 1L;

}